package com.hst.capacity.infra.persistence.jpa.account;

import com.hst.capacity.domain.model.entity.account.ExpressAccountDetailEntity;
import com.hst.capacity.domain.model.entity.order.express.ExpressOrderSettlementEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.jpa.repository.JpaRepository;

public interface ExpressAccountDetailRepository extends JpaRepository<ExpressAccountDetailEntity, String> {
    Page<ExpressAccountDetailEntity> findByIdAccount(String idAccount, PageRequest pageRequest);

    /**
     * 根据订单ID查找司机账户明细信息
     * @param idOrder
     * @return
     */
    ExpressAccountDetailEntity findByRelateOrderNo(String idOrder);

}